package com.time.timespace.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author mjw
 * @date 2024/06/27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "角色表")
@TableName("ts_role")
public class Role {

    @Schema(description = "角色id")
    @TableId
    private Long roleId;

    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "角色的身份key，例如admin、user")
    private String roleKey;

    @Schema(description = "删除标识，Y表示删除，N表示未删除")
    private String deleteFlag;

    @Schema(description = "创建日期")
    private Date creationDate;

    @Schema(description = "备注")
    private String remark;

}
